<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.javapig.util.*"%>
<%@ page import="com.dd.exception.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dd.*" %>
<%@ page import="java.util.ArrayList" %>

<%@ include file="global.jsp" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%
	ArrayList alXiangMuShiYeBus = XiangMuShiYeBuManager.GetAllXiangMuShiYeBuInfos();
	int nShiYeBuCount = alXiangMuShiYeBus.size();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>采购员平台</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>
<body bgcolor="#ffffff" >
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY  background="images/main_logbk.jpg">
        <TR>
          <TD 
          style="BACKGROUND-IMAGE: url(images/main_log.gif); HEIGHT: 91px; WIDTH: 100%;TEXT-ALIGN: center;background-repeat: repeat-y;  " 
          colSpan=1>
            <TABLE style="WIDTH: 100%; HEIGHT: 91px" 
            cellSpacing=0 cellPadding=0 border=0>             
              <TR>
                <TD width="210px">&nbsp;</TD>
                <TD>&nbsp;</TD>
               </TR>
              <TR>
                <TD width="210px">&nbsp;</TD>
                <TD style="HEIGHT: 60px">
                  <TABLE id=Top1_dlsOnez 
                  style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px;  BORDER-BOTTOM: 0px; BORDER-COLLAPSE: collapse; HEIGHT: 59px" 
                  cellSpacing=0 cellPadding=0 align=left border=0>
                    <TBODY>
                    <%
                    	if(nShiYeBuCount > 0)
                    	{
            	     	 	Iterator it = alXiangMuShiYeBus.iterator();
                    	 	while(it.hasNext())
                    	 	{
                    	 		XiangMuShiYeBu ux = (XiangMuShiYeBu)it.next();
                    	 		if(ux != null)
                    	 		{
                    	 			ArrayList slXiangMus = XiangMuManager.GetXiangMusByXiangMuShiYeId(ux.getXiangMuShiYeId());
                    	 			int nXiangMuCount = slXiangMus.size();
                    %>
                    <TR>
                      <TD 
                      style="FONT-WEIGHT: normal; FONT-STYLE: normal; TEXT-DECORATION: none" 
                      align=middle>
                        <TABLE 
                        style="BACKGROUND-IMAGE: url(images/11.gif); WIDTH: 98px; HEIGHT: 30px; TEXT-ALIGN: center" 
                        cellSpacing=0 cellPadding=0 border=0>                          
                          <TR>
                            <TD style="font-family:verdana;font-weight:bold;font-size:80%;color:green">
                               	<%=ux.getShiYeBuMingCheng()%> :                             
                             </TD>
                           </TR>                           
                         </TABLE>
                       </TD>
                       <%
                       		if(nXiangMuCount > 0)
                       		{
                        	 	Iterator itXimu = slXiangMus.iterator();
                        	 	while(itXimu.hasNext())
                        	 	{
                        	 		XiangMu m_mx = (XiangMu)itXimu.next();
                        	 		if(m_mx != null)
                        	 		{
                       %>
                       					                      <TD 
                      style="FONT-WEIGHT: normal; FONT-STYLE: normal; TEXT-DECORATION: none" 
                      align=middle>
                        <TABLE 
                        style="BACKGROUND-IMAGE: url(images/11.gif); WIDTH: 98px; HEIGHT: 30px; TEXT-ALIGN: center" 
                        cellSpacing=0 cellPadding=0 border=0>                          
                          <TR>
                            <TD>
                            	<%
                            		String strXiangMuMingCheng = m_mx.getMingCheng();
                            		int nLength = strXiangMuMingCheng.length();
                            		String strSuoXieMingCheng = strXiangMuMingCheng;
                            		if(nLength>6)
                            		{
                            			strSuoXieMingCheng = strXiangMuMingCheng.substring(0,6) + "...";
                            		}
                            	%>
                            	<A style="DISPLAY: inline-block; FONT-SIZE: 12px; WIDTH: 98px; COLOR: blue TEXT-DECORATION: none" 
                              href="user_Project_View.jsp?XiangMuID=<%=m_mx.getId()%>" target="main"
                              title=<%=strXiangMuMingCheng%> >
                              		<u>
                              			<%=strSuoXieMingCheng%>
                              		</u>
                              	</A>
                             </TD>
                           </TR>                           
                         </TABLE>
                       </TD>
                       
                       <%
                        	 		}
                        	 	}
                       		}
                       	%>
                    <TR/>
                    <%
                       		
                    	 		}
                    	 	}
                    	}
                    %>
 				  </TBODY>
 				</TABLE>
 				 </TD>
                </TR>
<TR> <TD style="WIDTH: 376px; HEIGHT: 16px"></TD> <TD style="HEIGHT: 16px"></TD> </TR> 
            </TABLE>
         </TD>
       </TR>
    </TABLE>
</body>
</html>